﻿using GlobalObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace WCFServiceWebRole1.DataObjects
{
    //[DataContract(Name = "User")]
    //public class UserDataContracts
    //{
    //        [DataMember]
    //        public String Purpose { get; set; }
        
    //}

    

    [DataContract(Name = "UserDetails")]
    public class UserDetailsResponse
    {
        [DataMember(Name = "href"), Newtonsoft.Json.JsonProperty]
        public Uri resource { get; set; }
        [DataMember(Name = "response"), Newtonsoft.Json.JsonProperty]
        public UserDetails response { get; set; }
    }

    [DataContract, Newtonsoft.Json.JsonObject(MemberSerialization = Newtonsoft.Json.MemberSerialization.OptIn)]
    public class ChangePasswordContract
    {
        //private string password_;

        [DataMember(IsRequired = false), Newtonsoft.Json.JsonProperty]
        public int Id { get; set; }
        [DataMember(IsRequired = false), Newtonsoft.Json.JsonProperty]
        public String OldPassword { get; set; }
        [DataMember(IsRequired = false), Newtonsoft.Json.JsonProperty]
        public String NewPassword { get; set; }
    }


}